<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>挂载组件</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case13-demo3">
    <my-components></my-components>
</div>
<script>
    var case13Demo3=new Vue({
        el:"#case13-demo3",
        data:{
            arr:["aa","bb","cc"]
        },
        components:{
            'my-components':{
                data: function () {
                    arr:["aa","bb","cc"]
                },
                template:"<div v-for='value in arr'>{{value}}</div>"
            }
        }
    })
</script>
</body>
</html>